<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Primus</title>
	
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">   
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/style.css">
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_80.css">
    <link type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_8010.css">
    
	<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
    <script type="text/javascript">
    	<%-- function onQnaClick() {
    		if(<%=session.getA%>) {
    			location.href="/GOP/pages/notice/qna/request_qna1.jsp";
    		} else {
    			alert("로그인을 하셔야 합니다.");
    			location.href="/GOP/pages/login/login.jsp";
    		}
    	} --%>
    </script>
</head>
<body>
	<form action="/GOP/pages/notice/list/read.jsp" method="post" name="listForm">
		<div id="container">
			<div id="content">
				<div id="main-shortCut">
					<div class="sub-main-section">
						<div class="page-type3">
							<h2>
								<p>HELP DESK</p>
								Primus <span>고객센터</span>
							</h2>
						</div>
						<div class="listTab mainTab">
							<div class="ars">
								<strong>ARS : 1544-5522</strong>
								<p>상담원 연결 가능 시간 : 평일 오전 9시~오후 6시</p>
							</div>
							<ul style="height: 662px;">
								<li>
									<p class="line" style="width: 990px; display: block;"></p>
									<h3 class="tab-title on">
										<a><span style="width: 328px;">공지사항</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: block;">
										<li class="t-head">
											<h4 class="tit-tab">공지사항</h4>
											<div class="notice-form">
												<label for="ddlTheaters" class="notice-label">공지사항 극장별 분류</label>
												<span class="select-box" style="background-position: 135px 50%;">
												<span class="selected-text">전체</span>
													<select id="ddlTheaters" name="ddlTheaters" class="target">
														<option value="" selected="">전체</option>
														<option value="999999">프리머스</option>
														<option value="200106">춘천</option>
														<option value="425112">안산 메가넥스</option>
														<option value="447103">오산</option>
														<option value="450105">평택</option>
														<option value="530108">목포</option>
														<option value="612106">해운대</option>
														<option value="660108">진주</option>
														<option value="740106">김천</option>
														<option value="760106">안동</option>
													</select>
												</span>
												<p><a href="" class="button h30 w97 white"><b>보기</b></a></p>
											</div>
										</li>
										<li class="table">
											<table width="100%">
												<caption class="hide">공지사항 목록</caption>
												<thead class="notice-thead">
													<tr>
														<th scope="col" class="table-head1">번호</th>
														<th scope="col" class="table-head2">극장</th>
														<th scope="col" class="table-head3">제목</th>
														<th scope="col" class="table-head4">등록일</th>
														<th scope="col" class="table-head5">조회수</th>
													</tr>
												</thead>
												<tbody>
												    <c:forEach var="notice" items="${notices }">
														<tr this.style.backgroundcolor="#F4F1E9">
															<td>${notice.num }</td>
															<td>[${notice.writer}]</td>
															<td class="teble-content">
																<a style="cursor:pointer;" href="read?num=${notice.num}">${notice.subject}</a>
															</td>
															<td>${notice.regdate}</td>
															<td>${notice.readcount}</td>
														</tr>
												    </c:forEach>
												</tbody>
											</table>
										</li>
										<!-- table -->
										<li class="page-box">
											<a class="on">1</a>
										</li>
										<c:if test="${user != null}">
											<c:if test="${user.getMember_id() == 'admin' }">
												<li class="write-box" style="text-align: right; margin-right: 50px;">
													<a href="write" class="button h29 w120 orange"><b>작성하기</b></a>
												</li>
											</c:if>
										</c:if>
									</ul>
								</li>
								<li>
									<p class="line" style="width: 990px; display: none;"></p>
									<h3 class="tab-title">
										<a href="/spring-GOP/help/faq/list"><span style="width: 328px;">FAQ</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: none;">
									</ul>
								</li>

								<li>
									<p class="line" style="width: 990px; display: none;"></p>
									<h3 class="tab-title">
										<a href="/spring-GOP/login/checkLogin?idx=${pageIdx}&target=qna"><span style="width: 328px;">문의하기</span></a>
									</h3>
									<ul class="ul-tab main-tab tab-content" style="display: none;">
									</ul>
								</li>
							</ul>
						</div>
						<!--//listTab mainTab-->
					</div>
					<!--//sub-main-section-->
				</div>
				<!--//main-shortCut-->
			</div>
			<!--//content-->
		</div>
	</form>
</body>
</html>